﻿{include file="public/header" /}
{css href="__ROOT__/static/public/umeditor/themes/default/css/umeditor.css" /}
{js href="__ROOT__/static/public/umeditor/third-party/template.min.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.config.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.min.js" /}
<style>
	.am-dropdown{
		width: 100%;
		margin-left: 30px;
		margin-bottom: 10px;
	}
	.am-dropdown div{
		color: #000;
	}
</style>
<form method="post" class="form-x" action="{if $data.id}?id={$data.id}{/if}" style="overflow: hidden">
	<div class="panel admin-panel" style="background: #fff">
		<br>
		<script>
			//city canshu
            var pid='{$data.pid}';
            var cid='{$data.cid}';
            var aid='{$data.aid}';
			var selectc=true;
			var selecta=true;
		</script>
		<div class="am-dropdown">
			<div class="label">
				<label for="name">{:lang('currency')['city']}</label>
			</div>
			<div class="field">
				{include file="public/city" /}
			</div>
		</div>
        <div class="am-dropdown">
			<div class="label">
				<label>名称</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="name" name="name" value="{$data.name}" style="width: 120px" required placeholder="{:lang('label')['name']}" />
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label>描述</label>
			</div>
			<div class="field">
				<script data-validate="required:{:lang('currency')['required']}" type="text/plain" name="description" id="myEditor" style="width:1000px;height:240px;">{$data.description} </script>
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label></label>
			</div>
			<div class="field">
				<button class="button bg-main" type="submit">{:lang('form')['submit']}</button>
			</div>
		</div>
		<br/>
		</div>
	</form>
	<script>
		$("[name='status']").click(function(){
			var status = $("[name='status']:checked").val();
			if(status=='4'){
				$("#refuse").removeClass('hidden');
			}else{
				$("#refuse").addClass('hidden');
			}
		});
		var um = UM.getEditor('myEditor');
		
	</script>
{include file="public/footer" /}